#pragma once

#include <iostream>
#include <string>
#include <cstring>
#include <ctime>

#define DEBUG 0
#define NOTICE 1
#define WARNIGN 2
#define ERROR 3

const std::string msg[] = {"Debug", "Notice", "Warning", "Error"};

std::ostream &Log(std::string s, int level)
{
    std::cout << " | " << (unsigned int)time(nullptr) << " | " << msg[level] << " | " << s;
    return std::cout;
}